package com.mikey.emoji.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.mikey.emoji.dao.PaperMapper;
import com.mikey.emoji.dao.TagMapper;
import com.mikey.emoji.model.pojo.Paper;
import com.mikey.emoji.model.pojo.Tag;
import com.mikey.emoji.service.PaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author :Mikey
 * @description :
 * @create :2022-04-08 12:08:00
 */
@Service
public class PaperServiceImpl extends ServiceImpl<PaperMapper, Paper> implements PaperService {
//    @Autowired
//    private PaperMapper paperMapper;
//
//
//    @Override
//    public List<Paper> selectFindAll() {
//        List<Paper> papers = paperMapper.selectAll();
//        return papers;
//    }
//
//    @Override
//    public boolean addPaper(Paper paper) {
//        return paperMapper.insertSelective(paper) == 1;
//    }
//
//    @Override
//    public boolean deletePaper(Integer id) {
//        return paperMapper.deleteByPrimaryKey(id) == 1;
//    }
//
//    @Override
//    public boolean updatePaper(Paper paper) {
//        return paperMapper.updateByPrimaryKeySelective(paper) == 1;
//    }
//
//    @Override
//    public List<Paper> findByKey(String key) {
//        return paperMapper.selectByKey(key);
//    }
}
